package com.class06.mapper;

import com.class06.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface EmployeeMapper {


    public Employee getEmpById(Integer id);


//    插入员工数据
    public void insertEmp(Employee emp);


//    更新员工薪资
//
//    public int updateEmp(@Param("id") Integer id, @Param("salary") Double salary);
    public int updateEmp( Integer id, Double salary);



    public int updateEmpByMap(Map emp);



}
